package com.jmb.apiplatform.mapper;


import com.jmb.apiplatform.pojo.PermissionRoleDao;
import com.jmb.apiplatform.pojo.RoleDao;
import com.jmb.apiplatform.pojo.RoleVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;



@Mapper
public interface RoleMapper  {
    void insertRole(RoleDao roleDao);
    String findRoleName(String name);
    List<RoleDao> rolelist(RoleVO roleVO);
    RoleDao findId(Integer id);

    void editRole(RoleDao roleDao);

    void removeId(Integer id);

    List<RoleDao> allStatus(Integer status);

    String findIdName(Integer roleId);


    void saveRolePermission(PermissionRoleDao permissionRoleDao);
    List<Integer> checkPermissionId (Integer id);

    void removePerssionRole(PermissionRoleDao permissionRoleDao);
    List<String> readPermission(Integer roleId);
}




